GXPostScriptDoDocumentHeader
QuickDraw GX sends theGXPostScriptDoDocumentHeader
message to generate the PostScript program header for a document. You can override theGXPostScriptDoDocumentHeader
message to change the PostScript document structure and formatting setup for a document. Your override of theGXPostScriptDoDocumentHeader
message must match the following formal declaration:
OSErr MyPostScriptDoDocumentHeader ( gxPostScriptImageDataHandle hImageData);
hImageData
- A handle to the PostScript imaging system structure.
- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
QuickDraw GX sends theGXPostScriptDoDocumentHeader
message during its default implementation of theGXImageDocument
message when printing to a PostScript device. TheGXPostScriptDoDocumentHeader
message is the first message sent when generating a PostScript program. QuickDraw GX uses this message to generate a PostScript program header, which is required for conforming PostScript programs. The information for the header is obtained from the job object.You can override this message to build your own document header or to add comments to a PostScript header.
SPECIAL CONSIDERATIONS
You can totally override theGXPostScriptDoDocumentHeader
message to build your own PostScript program header, or you can forward this message and then add your own information to the header created by the default implementation.RESULT CODES
The default implementation of the
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. GXPostScriptDoDocumentHeader
message can also return the communications errors that are listed in Table 4-2 on page 4-42.SEE ALSO
TheGXImageDocument
message is described on page 4-93.The PostScript imaging system structure is described on page 4-26.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help